home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 6: Level 6 / 17 Bit - Level 6 (1998)(Epic Marketing)[!].iso / quartz / q0429.dms / q0429.adf / libray / libimage / image.h < prev    next >
C/C++ Source or Header  |  1991-08-08  |  1KB  |  43 lines

  1. /*
  2.  * image.h
  3.  *
  4.  * Copyright (C) 1989, 1991, Rod G. Bogart, Craig E. Kolb
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  * $Id: image.h,v 4.0 91/07/17 14:33:39 kolb Exp Locker: kolb $
  17.  *
  18.  * $Log:    image.h,v $
  19.  * Revision 4.0  91/07/17  14:33:39  kolb
  20.  * Initial version.
  21.  * 
  22.  */
  23. #ifndef IMAGE_H
  24. #define IMAGE_H
  25.  
  26. /*
  27.  * Generic image object for texture map storage.
  28.  */
  29. typedef struct Image {
  30.     int    width, height,        /* Image size */
  31.         chan, has_alpha,    /* # of channels, has alpha info? */
  32.         totalchan,        /* # channels + any alpha channel */
  33.         chansize;        /* width * height */
  34.     unsigned char *data;        /* Image */
  35.     char    *filename;        /* Filename (identifier) */
  36.     struct Image *next;        /* Next image in list. */
  37. } Image;
  38.  
  39. Image    *ImageCreate(), *ImageFind(), *ImageRead();
  40. void    ImageIndex();
  41.  
  42. #endif /* IMAGE_H */
  43.